package com.runoob.exception;


public class TestTryCatch {
    public static void main(String[] args) {
        try{
            test1();
        }catch (Exception e){
            System.out.println("e2 = " + e);
        }
    }
    
    public static void test1() throws Exception {
        try{
            int i= 1/0;
        }catch (Exception e){
            System.out.println("e1 = " + e);
            throw new Exception(e);
        }
    }
}
